package com.ymk.entity;
import java.util.Date;
public class User {
	private int id;
	private String name;
	private double sal;
	private Date birthday;


	public User() {
	}

	public User(int id, String name, double sal, Date birthday) {
		this.id = id;
		this.name = name;
		this.sal = sal;
		this.birthday = birthday;
	}

	/**
	 * 获取
	 * @return id
	 */
	public int getId() {
		return id;
	}

	/**
	 * 设置
	 * @param id
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * 获取
	 * @return name
	 */
	public String getName() {
		return name;
	}

	/**
	 * 设置
	 * @param name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * 获取
	 * @return sal
	 */
	public double getSal() {
		return sal;
	}

	/**
	 * 设置
	 * @param sal
	 */
	public void setSal(double sal) {
		this.sal = sal;
	}

	/**
	 * 获取
	 * @return birthday
	 */
	public Date getBirthday() {
		return birthday;
	}

	/**
	 * 设置
	 * @param birthday
	 */
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String toString() {
		return "User{id = " + id + ", name = " + name + ", sal = " + sal + ", birthday = " + birthday + "}";
	}
}